package com.example.interview.example.bankCallSystem.impl_3;

//银行窗口
public abstract class Window {

    public int id;          //客户编号
    public String type;     //Normal    Quick   VIP
    public Boolean isBusy;  //生成的时候是否不是空闲的
    //银行窗口办理业务的方法
    public void execute(Consumer client) {
        System.out.println(id + "号" + type + "窗口 开始办理" + client.id + "号" + client.type + "顾客的业务");
        isBusy = true; //set繁忙
        client.execute();
        isBusy = false;//set空闲
        System.out.println(id + "号" + type + "窗口 办理完了" + client.id + "号" + client.type + "顾客的业务");
    }
//    public abstract Window getIdelVIPWindow();
//    public abstract Window getIdelNormalWindow();
//    public abstract Window getIdelQuickWindow();
}
